angular.module('starter.controllers')
  .controller('gpsTestController', function ($scope, baiduGPSFactory) {

    $scope.$on('$ionicView.loaded', function () {
      // baiduGPSFactory.getLocation(function (res) {
      //   console.info(res)
      // }, function (error) {
      //   console.info(error)
      // });

    });
    $scope.getLocation = function () {
      console.info("start");
      baidu_location.getCurrentPosition(function (res) {
        console.info(res)
      }, function (error) {
        console.info(error)
      });
    }
  })
